package cn.healthlink.no_5.lifecycle;

import org.springframework.context.SmartLifecycle;

/**
 * @author dengzhiyuan
 * @version 1.0
 * @time 2021/2/22 17:43
 */
public class DemoTwoSmartLifeCycle implements SmartLifecycle {

	private boolean running =false;
	@Override
	public void start() {
		running = true;
		System.out.println("demo two start !!!!!!!!!");
	}

	@Override
	public void stop() {
		running = false;
		System.out.println("demo two stop !!!!!!!!!");
	}

	@Override
	public boolean isRunning() {
		System.out.println("demo two running !!!!!!!!!");
		return running;
	}
}
